﻿<Canvas xmlns="http://schemas.microsoft.com/client/2007" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        x:Class="SilverGlobe.Globe"
        Width="480"
        Height="480"
>
    <Canvas.Background>
        <LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="0,480">
            <GradientStop Color="#FFCCCCCC" Offset="0"/>
            <GradientStop Color="White" Offset="0.6"/>
            <GradientStop Color="#FF888888" Offset="1"/>
        </LinearGradientBrush>
    </Canvas.Background>

    <!-- Clip to sphere -->
    <Canvas.Clip>
        <EllipseGeometry Center="240,240" RadiusX="120" RadiusY="120" x:Name="_clip" />
    </Canvas.Clip>

    <Canvas x:Name="_shapes" Width="480" Height="480">
        <Path Fill="#FF66AAFF" Width="480" Height="480" x:Name="Africa" />
        <Path Fill="#FF66AAFF" Width="480" Height="480" x:Name="America" />
        <Path Fill="#FF66AAFF" Width="480" Height="480" x:Name="Australia" />
        <Path Fill="#FF66AAFF" Width="480" Height="480" x:Name="Eurasia" />
        <Path Width="480" Height="480" x:Name="Antarctica">
            <Path.Fill>
                <LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="0,480">
                    <GradientStop Color="#FFCCCCCC"/>
                    <GradientStop Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Path.Fill>
        </Path>

    </Canvas>

    <Ellipse Width="480" Height="480"
           RenderTransformOrigin="0.5,0.5"           
  >
        <Ellipse.Fill>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad">
                <GradientStop Color="White"/>
                <GradientStop Color="#0088CCFF" Offset="0.4"/>
            </LinearGradientBrush>
        </Ellipse.Fill>
        <Ellipse.RenderTransform>
            <ScaleTransform x:Name="_glossScale" />
        </Ellipse.RenderTransform>
    </Ellipse>

</Canvas>